<!DOCTYPE html>
<html>
  <head>
    <title>我的</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="${s.base}/mobile/base/css/weui.min.css">
    <link rel="stylesheet" href="${s.base}/mobile/base/css/jquery-weui.css">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/base.css?123456">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/component.css?123456">
    <style type="text/css">
	html,body{background:#ffffff;}
	.logo{width:164px; height:164px; margin:0px auto; padding-top:318px;}
	.xyg-login{width:610px; margin:0px 70px; height:auto; padding-top:100px;}
	.xyg-login-item{width:100%; margin:10px 0px; height:auto; padding:30px 0px; border-bottom:1px solid #E92333;}
	.xyg-login-item .xyg-login-icon{width:50px; float:left;}
	.xyg-login-item .xyg-login-icon img{width:auto; height:36px; margin:0px auto;}
	.xyg-login-item .xyg-login-input{width:540px; margin-left:20px; height:36px; float:left;}
	.xyg-login-item .xyg-login-input input{width:100%; height:36px; color:#999999;}
	.xyg-comp-btn1{width:100%; height:88px; line-height:88px; color:#ffffff; font-size:32px; letter-spacing:5px; background:#FF4B5A; text-align:center; border-radius:44px; margin-top:60px;}
	.xyg-login-text{padding-top:30px;}
	.xyg-login-tip{ margin-top: 200px; width:100%; text-align:center;}
    </style>
  </head>
  <body>
  <img src="${s.base}/mobile/base/images/logo.png" class="logo"/>
  
  <div class="xyg-login">
  	 <div class="xyg-login-item">
		<div class="xyg-login-icon">
        <img src="${s.base}/mobile/base/images/icon_phone.png"/>
        </div>
        <div class="xyg-login-input">
        <input type="text" id="phone" class="xyg-comp-input-noborder font-base1-size" placeholder="请输入手机号码"/>
        </div>
        <div class="clearBoth"></div>
  	 </div>
  <div class="xyg-login-item">
		<div class="xyg-login-icon">
        <img src="${s.base}/mobile/base/images/icon_psw.png"/>
        </div>
        <div class="xyg-login-input">
        <input type="password" id="password" class="xyg-comp-input-noborder font-base1-size" placeholder="请输入密码"/>
        </div>
        <div class="clearBoth"></div>
  	 </div>
      <#if webMember?? && webMember.nickName??>
          <div class="xyg-comp-btn1" onclick="submit();">
              登录
          </div>
          <#else>
              <div class="xyg-comp-btn1" onclick="goCheckPage('/upload/2.png','/weChat/loginPage','','');">
                  登录
              </div>
      </#if>

     <div class="xyg-login-text">
     	<span class="font-base1-size color1" onclick="goRegisterPage('${memberId}')">注册</span>
        <span class="floatR font-base1-size color1" onclick="goRepPasswordPage('${memberId}')">忘记密码</span>
     </div>
  </div>
  
 <div class="xyg-login-tip font-base1-size" onclick="goArticlePage('${memberId}','20190707174411003954177843251158')">
     	还不是我们的合作渠道？<span class="color4">立即加入我们吧？</span>
  </div>
   
  </body>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-2.1.4.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-weui.js"></script>
  <script src="${s.base}/mobile/base/js/swiper.js"></script>
  <script src="${s.base}/mobile/base/fonts/iconfont.js"></script>
  <script src="${s.base}/mobile/base/js/component.js"></script>
  <script src="${s.base}/mobile/base/js/base.js?123456789000"></script>
  <script type="text/javascript">
  	initXygDpi();

	$(document).ready(function(e) {
		initDate();
    });
	function initDate(){
		$.fn.initXygCompBanner("",".xyg-comp-banner-swiper1",417);
	}
    var memberId = '${memberId}';
	// 登录
    function submit() {
        var phone = $("#phone").val();
        if (phone == null || phone == "") {
            $.toast("请输入手机号", "text");
            return false;
        } else if (!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(phone))) {
            $.toast("手机码填写错误", "text");
            return false;
        }
        var password = $("#password").val();
        if (password == null || password == "") {
            $.toast("请输入密码", "text");
            return false;
        }
        $.fn.postMethodResult("/weChat/webMember/login", {
            'memberId': memberId,
            'phone': phone,
            'password': password
        }, function (data) {
            $.alert("操作成功", function () {
                goFistPage(memberId);
            });
        });
    }
  </script>
  
</html>

